﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Tasks;

namespace PivotApp1
{
    public partial class Auto_Info : PhoneApplicationPage
    {
        string distance;
        string flag;
      
        public Auto_Info()
        {
            InitializeComponent();
        }
        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            distance = NavigationContext.QueryString["distance"];
            flag = NavigationContext.QueryString["flag"];
        }

        private void image1_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            PhoneCallTask phonetask = new PhoneCallTask();
            phonetask.PhoneNumber = "01123378888";
            phonetask.Show();
        }


        /*private void auto_back_button_Tap(object sender, GestureEventArgs e)
        {
            NavigationService.Navigate(new Uri("/MainPage.xaml?dist_a=" + distance + "&flag=" + flag, UriKind.RelativeOrAbsolute));
            //textBlock5.Text = "Distance: " + distance;
        }*/
    }
}